using Godot;
public class ChestBlock : BlockMaterial
{
    public ChestBlock() : base("chest")
    {
        SetDisplayName("小箱子");
        SetView(true);
        SetCollide(false);
        SetBlockEntityCreate(() => new ChestBlockEntity());
    }
    public override bool OnUse(PlayerUseBlockEvent e)
    {
        LargeBackPack LBP = GD.Load<PackedScene>("res://Tscn/Store/LargeBackPack.tscn").Instance<LargeBackPack>();
        LBP.SetBlock(e.block);
        e.player.view.SetOpenView(LBP);
        return true;
    }
}